<!DOCTYPE html>
<html lang="zh-CN">
	<head>
		<meta charset="UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<link href="../../static/bootstrap.min.css" rel="stylesheet">
		<link href="../../static/style.css" rel="stylesheet">
		<title>计算机网络综合实训</title>
	</head>
	<body>
		<div class="container">
			<div class="col-md-12 column">
				<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">
					<div class="navbar-header">
						<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar-collapse">
						<span class="sr-only">Toggle navigation</span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						<span class="icon-bar"></span>
						</button>
						<a class="navbar-brand" href="#">华中科技大学</a>
					</div>
					<div class="collapse navbar-collapse" id="navbar-collapse">
						<ul class="nav navbar-nav navbar-right">
							<li><a href="/logout/adm">退出登陆&nbsp&nbsp&nbsp&nbsp&nbsp</a></li>
						</ul>
					</div>
				</nav>
			</div>
		</div>
		<div class="container-fluid">
			<div class="row">
				<div class="col-sm-3 col-md-2 sidebar">
					<ul class="nav nav-sidebar">
						<li><a href="/admin/show_course">课程详情</a></li>
						<li><a href="/admin/add_course">添加课程</a></li>
					</ul>
					<ul class="nav nav-sidebar">
						<li><a href="/admin/show_notices">公告详情</a></li>
						<li class="active"><a href="/admin/add_notice">添加公告</a></li>
					</ul>
					<ul class="nav nav-sidebar">
						<li><a href="/admin/reset_password">重置学生密码</a></li>
						<li><a href="/admin/add_teacher">添加教师用户</a></li>
						<li><a href="/admin/change_password">修改管理员密码</a></li>
					</ul>
				</div>
				<div class="col-md-offset-3 col-md-6">
					<h3>添加公告</h3>
					{% for message in get_flashed_messages() %}
						<div  class="flash" style="color:red"> {{ message }} </div>
					{% endfor %}
					<form class="form-horizontal" action="/admin/add_notice/" method="POST">
						<div class="form-group">
							<label for="title">公告主题</label>
							<input type="text" class="form-control" id="title" name="title">
						</div>
						<div class="form-group">
							<label for="detail">公告详情</label>
							<textarea class="form-control" id="detail" name="detail" rows="8"></textarea>
						</div>
						<button type="submit" class="btn btn-primary center-block">提交</button>
					</form>
				</div>
			</div>
		</div>
		<footer class="footer">
			<div class="container">
				<p class="text-muted">Copyright © HUST SCHOOL, Powered By <a href="http://leonard-peng.github.io">彭佳伟</a> In 2015</p>
			</div>
		</footer>
		<script src="../../static/jquery.min.js"></script>
		<script src="../../static/bootstrap.min.js"></script>
	</body>
</html>